package com.boot.web.serviceImpl;

import com.boot.web.dao.UserRoleDao;
import com.boot.web.entity.UserRole;
import com.boot.web.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.boot.base.serviceImpl.BaseServiceImpl;

import java.util.List;

/**
 * 用户与角色关系信息业务层接口实现
 * @author 【zhouJie】
 * @date 2019-12-05 17:31:35
 */
@Service
public class UserRoleServiceImpl extends BaseServiceImpl<UserRole> implements UserRoleService {

    @Autowired
    private UserRoleDao userRoleDao;

    @Override
    public List<UserRole> getUserRoleByUserId(Integer userId) {
        return userRoleDao.queryUserRoleByUserId(userId);
    }

}
